Skip to content

fix(fetch): preserve page titles in markdown output#4253

Open
kgarg2468 wants to merge 1 commit into
modelcontextprotocol:mainfrom
kgarg2468:kgarg/fetch-preserve-page-title
Open

fix(fetch): preserve page titles in markdown output#4253
kgarg2468 wants to merge 1 commit into
modelcontextprotocol:mainfrom
kgarg2468:kgarg/fetch-preserve-page-title

Conversation

@kgarg2468
Copy link
Copy Markdown

Summary

  • Prefix simplified HTML output with the Readability document title when it is not already present
  • Avoid duplicating the title when the extracted article starts with the same heading
  • Add regression coverage for pages whose title is omitted from the extracted article body

Fixes #2472.

Validation

  • cd src/fetch && uv run pytest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include title of fetched page in content returned by the fetch server

1 participant